//
//  GQProfileAbout.m
//  GuQu
//
//  Created by HELIUM STAR on 15/5/26.
//  Copyright (c) 2015年 HELIUM STAR. All rights reserved.
//

#import "GQProfileAbout.h"

@interface GQProfileAbout ()

@end

@implementation GQProfileAbout

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageWithOriginalName:@"distribute_back"] style:UIBarButtonItemStylePlain target:self action:@selector(backToPre)];
    self.title = @"关于古趣";
    [self setContentView];
}

- (void)backToPre
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)setContentView
{
    CGFloat width = 200;
    UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"profile_setting"]];
    imageView.width = width;
    imageView.height = width;
    imageView.x = (self.view.width - imageView.width) / 2;
    imageView.y = 80;
    [self.view addSubview:imageView];
    
    UILabel *versionLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(imageView.frame) - 20, self.view.width, 20)];
    versionLabel.text = @"版本1.0.0";
    versionLabel.font = [UIFont systemFontOfSize:14];
    versionLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:versionLabel];
    
    UILabel *emailLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(versionLabel.frame) + 5, self.view.width, 20)];
    emailLabel.text = @"邮箱：hi@guquapp.com";
    emailLabel.font = [UIFont systemFontOfSize:12];
    emailLabel.textAlignment = NSTextAlignmentCenter;
    emailLabel.textColor = [UIColor lightGrayColor];
    [self.view addSubview:emailLabel];
    
    UILabel *phoneLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(emailLabel.frame), self.view.width, 20)];
    phoneLabel.text = @"电话：011-78956412";
    phoneLabel.font = [UIFont systemFontOfSize:12];
    phoneLabel.textAlignment = NSTextAlignmentCenter;
    phoneLabel.textColor = [UIColor lightGrayColor];
    [self.view addSubview:phoneLabel];
    
}

@end
